package com.atguigu.jedis.demo;

import redis.clients.jedis.Jedis;

/**
 * Created by Smexy on 2022/6/17
 */
public class JedisDemo1 {

    public static void main(String[] args) {

        //创建客户端对象
        Jedis jedis = new Jedis("hadoop104", 6379);

        jedis.auth("123456");

        String pong = jedis.ping();

        System.out.println(pong);

        //关闭客户端
        jedis.close();

    }

}
